checkbox value unchecked after return view model

46

checkbox value unchecked after return view model -

@model BlogPostsVM
@using (Html.BeginForm("Index", "yourControllerName", FormMethod.Get))
{
    @Html.LabelFor(m => m.IncludeUserPostsOnly)
    @Html.CheckBoxFor(m => m.IncludeUserPostsOnly)
    <input type="submit" value="Search" />
}

Comments

Submit
0 Comments